package flashcards;
import java.awt.*;
import javax.swing.*;
import java.util.*;
/**
 *
 * @author chanklor
 */
public class ventana extends JFrame {
    ventana(String a){
        super("ventana");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(400, 400);
        setLayout(new BorderLayout());
        setTitle("Chinese Flashcards");

        JLabel label1 = new JLabel("Escribe el caracter del siguiente pinyin");
        JTextArea area1 = new JTextArea(a);
        JButton boton1 = new JButton("Siguiente caracter");
        boton1.addActionListener(new ActionListener1());

        add(area1,BorderLayout.CENTER);
        add(label1,BorderLayout.NORTH);
        add(boton1,BorderLayout.SOUTH);

        setVisible(true);
               
    }


}
